/*
 * chunk_manager.h
 *
 *  Created on: Mar 2, 2013
 *      Author: redchen
 */

#ifndef CHUNK_MANAGER_H_
#define CHUNK_MANAGER_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <lfs.h>
#include <vector.h>

void chunk_manager_init();

Status chunk_manager_chunk_create(const char* path, int64_t id, const char* filename, int32_t size);

Status chunk_manager_chunk_append(int64_t id, void* data, int32_t size);

Status chunk_manager_chunk_read(int64_t id, int64_t start, int64_t end, Vector* files);

#ifdef __cplusplus
}
#endif

#endif /* CHUNK_MANAGER_H_ */
